package com.example.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @Auther qiansu
 * @Date 2021/5/30 下午12:50
 **/
@Data
@Table(name="shopping_car")
public class ShoppingCar {

    @Column(name="product_id",table = "shopping_car")
    private Integer product_id;

    @Column(name="product_name",table = "shopping_car")
    private String product_name;

    private Float price;

    private Integer amount;

    @Column(name="total_price",table = "shopping_car")
    private Float total_price;

    @Column(name="user_id")
    private Integer user_id;

    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Float getTotal_price() {
        return total_price;
    }

    public void setTotal_price(Float total_price) {
        this.total_price = total_price;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }
}
